import numpy as np
import matplotlib.pyplot as plt
import sys

filename = sys.argv[1]

with open(filename,"r") as f:
	n,l,r = f.readline().split()
	n = int(n)
	l,r = float(l),float(r)
	X = np.linspace(l, r, n+1, endpoint=True)
	F = np.array(eval(f.readline()))
	plt.plot(X,F, linewidth=2.5, linestyle="-")
	while True:
		F = f.readline()
		if len(F) == 0:
			break
		F = np.array(eval(F))
		plt.plot(X,F, linewidth=1, linestyle="-")
f.close()

plt.savefig("../png/"+filename[:-4]+".png")